/*
 * @Author: zwz
 * @Date: 2023-09-09 16:31:39
 * @LastEditors: zwz
 * @LastEditTime: 2023-09-09 17:19:51
 * @Description: 请填写简介
 */

const tabs = {
  namespaced: true,
  state: {
    tabValue: localStorage.getItem('TABVALUE') || 'home',
  },

  mutations: {
    SET_TABVALUE: (state, tabValue) => {
      state.tabValue = tabValue
    },
  },
  actions: {
    changeTabsValue({ commit }, value) {
      commit('SET_TABVALUE', value)
      localStorage.setItem('TABVALUE', value)
    },
  }
}

export default tabs
